import java.util.Scanner;

/**
 * @author: gao
 * @create-date: 2025/6/1 21:24
 */

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.nextLine();
        String[] num = s.split(" ");
        int sum = 0;
        for (String numStr : num) {
            try {
                sum += Integer.parseInt(numStr);
            } catch (NumberFormatException e) {
                sum += 0;
            }
        }
        System.out.println(sum);
    }
}